import { Injectable } from '@nestjs/common';

@Injectable()
export class PostsService {
    async login(body:any):Promise<any>{
        console.log(body);
        if(body.username==='admin' && body.password==='123456'){
            return true
        }else {
            return false
        }
        
      }
}
